package com.mf.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * 用户表
 *
 * @author mf
 * @since 2024-07-05
 */
@Getter
@ToString
@Setter
@TableName("dto_user")

public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    private String userName;

    /**
     * 盐
     */

    private String passwordSale;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 最后登录时间
     */
    private LocalDateTime loginTime;

    /**
     * 0:启用;1:禁用
     */
    private Integer status;

    /**
     * 0:女;1:男;其他未知
     */
    private Integer gender;

    /**
     * 所属系统
     */
    private String systemCode;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}